package cn.maxhou.t0001;

public class apps {
    public static void main(String[] args) {
        Counter counter1 = CounterFactory.getInstance("+");
        Counter counter2 = CounterFactory.getInstance("-");
        Counter counter3 = CounterFactory.getInstance("*");
        Counter counter4 = CounterFactory.getInstance("/");
        System.out.println("加法运行结果为: "+counter1.count(5.00,6));
        System.out.println("减法运行结果为: "+counter2.count(5.00,6));
        System.out.println("乘法运行结果为: "+counter3.count(5.00,6));
        System.out.println("除法运行结果为: "+counter4.count(5.00,6));
    }
}
